//town script for town 49: Hill tower

begintownscript;

variables;

body;

beginstate INIT_STATE;
break;

beginstate EXIT_STATE;
break;

beginstate START_STATE;

if (what_day_of_scenario() > 3) { // tower is destroyed
		set_terrain(12,19,137);
		set_terrain(9,16,138);
		set_terrain(6,14,137);
		set_terrain(7,14,137);
		set_terrain(10,13,138);
		set_terrain(10,19,138);
		set_terrain(12,12,137);
		set_terrain(15,16,137);
		set_terrain(13,15,137);

		erase_char(6);
		erase_char(7);
		erase_char(8);
		erase_char(9);

		if (get_flag(49,1) == 0) {
				message_dialog("This watchtower is absolutely free of human noises. You look around, and see how the stones of the paths, leading to the tower, has been damaged. The Senarti got here before you, and they didn't leave without showing it.","");
				set_flag(49,1,1);
				}
		}

break;

beginstate 10;
if (get_flag(49,0)==0) {
	message_dialog("You slowly begin your climb up this small guard tower. It may be well worth it, though, as the sight might be quite beautiful from up there.","You can't really imagine though what it is like to be sitting out here. These archers must be sitting ducks for the Senarti.");
	set_flag(49,0,1);
	}
break;
